/*
========================================================================
 Name        : MainListBox.h
 Author      : shitou
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
#ifndef MAINLISTBOX_H
#define MAINLISTBOX_H

#include <coecntrl.h>
#include <akniconutils.h>
#include <gulicon.h>
#include "CbaImage.h"
#include "ListBox.h"
#include "ListContainer.h"
#include "RegExpUtil.h"
class MEikCommandObserver;		

class CMainListBox : public CListContainer
	{
public:
	CMainListBox();
	static CMainListBox* NewL( 
		const TRect& aRect, 
		const CCoeControl* aParent, 
		MEikCommandObserver* aCommandObserver );
	static CMainListBox* NewLC( 
		const TRect& aRect, 
		const CCoeControl* aParent, 
		MEikCommandObserver* aCommandObserver );
	virtual ~CMainListBox();
	
public:
   // from base class MControlEventObserver
    void HandleControlEventL(CCoeControl* aControl,TEventType aEventType);
	
public:
	void ChangeViewL();
	void GetProductList();
	void ChangeUserType(TInt aType);
	
private:
   void ConstructL( 
            const TRect& aRect, 
            const CCoeControl* aParent, 
            MEikCommandObserver* aCommandObserver );
    static TInt Callback(TAny* aThis); 
    void setCbaL();
    void AddListBitmapsL();
    void AddListItemsL();

    
	};
				
#endif // MAINLISTBOX_H
